package com.hzf.material.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class MaterialGoodsModelPin implements Serializable {
    /**
     * 拼团商品型号ID
     *
     * @mbg.generated
     */
    private Integer pinId;

    /**
     * 商品型号ID
     *
     * @mbg.generated
     */
    private Integer modelId;

    /**
     * 拼团人数
     *
     * @mbg.generated
     */
    private Integer pinNums;

    /**
     * 拼团周期
     *
     * @mbg.generated
     */
    private Integer pinTime;

    /**
     * 是否免费配送（0：免费  1：不免费）
     *
     * @mbg.generated
     */
    private Integer pinFreeSend;

    /**
     * 拼团时每公里配送费用
     *
     * @mbg.generated
     */
    private BigDecimal pinSendPrice;

    /**
     * 是否带安装（0：不带  1：带）
     *
     * @mbg.generated
     */
    private Integer pinHasInstall;

    /**
     * 安装费用
     *
     * @mbg.generated
     */
    private BigDecimal pinInstallPrice;

    /**
     * 商品拼团价格
     *
     * @mbg.generated
     */
    private BigDecimal pinPrice;

    private List<MaterialPicInfo>list;

    private List<MaterialPicInfo>delectlist;

    private static final long serialVersionUID = 1L;

    public Integer getPinId() {
        return pinId;
    }

    public void setPinId(Integer pinId) {
        this.pinId = pinId;
    }

    public Integer getModelId() {
        return modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }

    public Integer getPinNums() {
        return pinNums;
    }

    public void setPinNums(Integer pinNums) {
        this.pinNums = pinNums;
    }

    public Integer getPinTime() {
        return pinTime;
    }

    public void setPinTime(Integer pinTime) {
        this.pinTime = pinTime;
    }

    public Integer getPinFreeSend() {
        return pinFreeSend;
    }

    public void setPinFreeSend(Integer pinFreeSend) {
        this.pinFreeSend = pinFreeSend;
    }

    public BigDecimal getPinSendPrice() {
        return pinSendPrice;
    }

    public void setPinSendPrice(BigDecimal pinSendPrice) {
        this.pinSendPrice = pinSendPrice;
    }

    public Integer getPinHasInstall() {
        return pinHasInstall;
    }

    public void setPinHasInstall(Integer pinHasInstall) {
        this.pinHasInstall = pinHasInstall;
    }

    public BigDecimal getPinInstallPrice() {
        return pinInstallPrice;
    }

    public void setPinInstallPrice(BigDecimal pinInstallPrice) {
        this.pinInstallPrice = pinInstallPrice;
    }

    public BigDecimal getPinPrice() {
        return pinPrice;
    }

    public void setPinPrice(BigDecimal pinPrice) {
        this.pinPrice = pinPrice;
    }

    public List<MaterialPicInfo> getDelectlist() {
        return delectlist;
    }

    public void setDelectlist(List<MaterialPicInfo> delectlist) {
        this.delectlist = delectlist;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pinId=").append(pinId);
        sb.append(", modelId=").append(modelId);
        sb.append(", pinNums=").append(pinNums);
        sb.append(", pinTime=").append(pinTime);
        sb.append(", pinFreeSend=").append(pinFreeSend);
        sb.append(", pinSendPrice=").append(pinSendPrice);
        sb.append(", pinHasInstall=").append(pinHasInstall);
        sb.append(", pinInstallPrice=").append(pinInstallPrice);
        sb.append(", pinPrice=").append(pinPrice);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialGoodsModelPin other = (MaterialGoodsModelPin) that;
        return (this.getPinId() == null ? other.getPinId() == null : this.getPinId().equals(other.getPinId()))
            && (this.getModelId() == null ? other.getModelId() == null : this.getModelId().equals(other.getModelId()))
            && (this.getPinNums() == null ? other.getPinNums() == null : this.getPinNums().equals(other.getPinNums()))
            && (this.getPinTime() == null ? other.getPinTime() == null : this.getPinTime().equals(other.getPinTime()))
            && (this.getPinFreeSend() == null ? other.getPinFreeSend() == null : this.getPinFreeSend().equals(other.getPinFreeSend()))
            && (this.getPinSendPrice() == null ? other.getPinSendPrice() == null : this.getPinSendPrice().equals(other.getPinSendPrice()))
            && (this.getPinHasInstall() == null ? other.getPinHasInstall() == null : this.getPinHasInstall().equals(other.getPinHasInstall()))
            && (this.getPinInstallPrice() == null ? other.getPinInstallPrice() == null : this.getPinInstallPrice().equals(other.getPinInstallPrice()))
            && (this.getPinPrice() == null ? other.getPinPrice() == null : this.getPinPrice().equals(other.getPinPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPinId() == null) ? 0 : getPinId().hashCode());
        result = prime * result + ((getModelId() == null) ? 0 : getModelId().hashCode());
        result = prime * result + ((getPinNums() == null) ? 0 : getPinNums().hashCode());
        result = prime * result + ((getPinTime() == null) ? 0 : getPinTime().hashCode());
        result = prime * result + ((getPinFreeSend() == null) ? 0 : getPinFreeSend().hashCode());
        result = prime * result + ((getPinSendPrice() == null) ? 0 : getPinSendPrice().hashCode());
        result = prime * result + ((getPinHasInstall() == null) ? 0 : getPinHasInstall().hashCode());
        result = prime * result + ((getPinInstallPrice() == null) ? 0 : getPinInstallPrice().hashCode());
        result = prime * result + ((getPinPrice() == null) ? 0 : getPinPrice().hashCode());
        return result;
    }

    public List<MaterialPicInfo> getList() {
        return list;
    }

    public void setList(List<MaterialPicInfo> list) {
        this.list = list;
    }
}